package com.mingyuan.library.infra.lending.patron.convert.named;

import com.mingyuan.library.domain.lending.patron.model.valueobject.PatronId;
import org.mapstruct.Named;
import org.springframework.stereotype.Component;

import java.util.UUID;

/**
 * @author yangzk
 * @version 1.0.0
 * @date 2024.01.16 17:09
 */
@Component
public class CustomTypeConverter {

    @Named("toPatronId")
    public PatronId toPatronId(UUID patronId) {
        return new PatronId(patronId);
    }
}
